<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fdk-aac: original/libAACenc/src/aacEnc_ram.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">fdk-aac
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ed137715e08969a186ec660e8ae6e2fb.html">original</a></li><li class="navelem"><a class="el" href="dir_56e7ea1c0577ad61260ef1bf1c929813.html">libAACenc</a></li><li class="navelem"><a class="el" href="dir_dfb1df4b4219d12036e0cad569bae42f.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">aacEnc_ram.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Memory layout.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;common_fix.h&quot;</code><br />
<code>#include &quot;aacenc.h&quot;</code><br />
<code>#include &quot;psy_data.h&quot;</code><br />
<code>#include &quot;interface.h&quot;</code><br />
<code>#include &quot;psy_main.h&quot;</code><br />
<code>#include &quot;bitenc.h&quot;</code><br />
<code>#include &quot;bit_cnt.h&quot;</code><br />
<code>#include &quot;psy_const.h&quot;</code><br />
</div>
<p><a href="aac_enc__ram_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_a_a_c___e_n_c.html">AAC_ENC</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:afbcb823adf11594a83547ffb9cf90183"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="aac_enc__ram_8h.html#afbcb823adf11594a83547ffb9cf90183">OUTPUTBUFFER_SIZE</a>&#160;&#160;&#160;  (8192)</td></tr>
<tr class="separator:afbcb823adf11594a83547ffb9cf90183"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1807b6abdff65af0914dd4accd82b550"><td class="memItemLeft" align="right" valign="top"><a id="a1807b6abdff65af0914dd4accd82b550"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>maxSize</b>(a,  b)&#160;&#160;&#160;(((a) &gt; (b)) ? (a) : (b))</td></tr>
<tr class="separator:a1807b6abdff65af0914dd4accd82b550"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb022e69e8d424d00754596caba713f7"><td class="memItemLeft" align="right" valign="top"><a id="acb022e69e8d424d00754596caba713f7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BIT_LOOK_UP_SIZE</b>&#160;&#160;&#160;  (sizeof(<a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>) * (MAX_SFB_LONG * (CODE_BOOK_ESC_NDX + 1)))</td></tr>
<tr class="separator:acb022e69e8d424d00754596caba713f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e12c737d2ccbc02bcba0a390bd66bb0"><td class="memItemLeft" align="right" valign="top"><a id="a1e12c737d2ccbc02bcba0a390bd66bb0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>MERGE_GAIN_LOOK_UP_SIZE</b>&#160;&#160;&#160;(sizeof(<a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a>) * MAX_SFB_LONG)</td></tr>
<tr class="separator:a1e12c737d2ccbc02bcba0a390bd66bb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c7060005eec6bd5f5b96040c22f5637"><td class="memItemLeft" align="right" valign="top"><a id="a8c7060005eec6bd5f5b96040c22f5637"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ADJ_THR_AH_FLAG_SIZE</b>&#160;&#160;&#160;(sizeof(<a class="el" href="machine__type_8h.html#aed5a2dbe32af3a91203f0f5e8697e873">UCHAR</a>) * ((8)) * (2) * MAX_GROUPED_SFB)</td></tr>
<tr class="separator:a8c7060005eec6bd5f5b96040c22f5637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67df8ea68f13ee1d59d307950df9eb91"><td class="memItemLeft" align="right" valign="top"><a id="a67df8ea68f13ee1d59d307950df9eb91"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ADJ_THR_THR_EXP_SIZE</b>&#160;&#160;&#160;(sizeof(FIXP_DBL) * ((8)) * (2) * MAX_GROUPED_SFB)</td></tr>
<tr class="separator:a67df8ea68f13ee1d59d307950df9eb91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a635792dbffeb2bd90e14222a873fdb54"><td class="memItemLeft" align="right" valign="top"><a id="a635792dbffeb2bd90e14222a873fdb54"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ADJ_THR_ACT_LIN_LD_DATA_SIZE</b>&#160;&#160;&#160;  (sizeof(FIXP_DBL) * ((8)) * (2) * MAX_GROUPED_SFB)</td></tr>
<tr class="separator:a635792dbffeb2bd90e14222a873fdb54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afecdab50fb5856a792331e08665eb4dc"><td class="memItemLeft" align="right" valign="top"><a id="afecdab50fb5856a792331e08665eb4dc"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ADJ_THR_SIZE</b>&#160;&#160;&#160;  (ADJ_THR_AH_FLAG_SIZE + ADJ_THR_THR_EXP_SIZE + ADJ_THR_ACT_LIN_LD_DATA_SIZE)</td></tr>
<tr class="separator:afecdab50fb5856a792331e08665eb4dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79484fb69e996794cbeb20c75ae2e687"><td class="memItemLeft" align="right" valign="top"><a id="a79484fb69e996794cbeb20c75ae2e687"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BUF_SIZE_0</b>&#160;&#160;&#160;(<a class="el" href="machine__type_8h.html#a51a540ef50f9ce83c4d71c9be5f365f5">ALIGN_SIZE</a>(sizeof(<a class="el" href="struct_q_c___o_u_t___c_h_a_n_n_e_l.html">QC_OUT_CHANNEL</a>)) * (8))</td></tr>
<tr class="separator:a79484fb69e996794cbeb20c75ae2e687"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93d4491b61e2c0a601b776665427fb67"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>BUF_SIZE_1</b></td></tr>
<tr class="separator:a93d4491b61e2c0a601b776665427fb67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1dd128abc21e14e467648840b7b1f2e"><td class="memItemLeft" align="right" valign="top"><a id="ad1dd128abc21e14e467648840b7b1f2e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>P_BUF_0</b>&#160;&#160;&#160;(0)</td></tr>
<tr class="separator:ad1dd128abc21e14e467648840b7b1f2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b915c92cb517615e699ff07cd8d05b"><td class="memItemLeft" align="right" valign="top"><a id="a76b915c92cb517615e699ff07cd8d05b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>P_BUF_1</b>&#160;&#160;&#160;(P_BUF_0 + BUF_SIZE_0)</td></tr>
<tr class="separator:a76b915c92cb517615e699ff07cd8d05b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd08812e3c7c21aff63d6f2ba8be0f0"><td class="memItemLeft" align="right" valign="top"><a id="acfd08812e3c7c21aff63d6f2ba8be0f0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>AAC_ENC_DYN_RAM_SIZE</b>&#160;&#160;&#160;(BUF_SIZE_0 + BUF_SIZE_1)</td></tr>
<tr class="separator:acfd08812e3c7c21aff63d6f2ba8be0f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ab6fa03b7cd15117240c3ef31df92381f"><td class="memItemLeft" align="right" valign="top"><a id="ab6fa03b7cd15117240c3ef31df92381f"></a>
<a class="el" href="struct_p_s_y___d_y_n_a_m_i_c.html">PSY_DYNAMIC</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>GetRam_aacEnc_PsyDynamic</b> (int n, <a class="el" href="machine__type_8h.html#aed5a2dbe32af3a91203f0f5e8697e873">UCHAR</a> *dynamic_RAM)</td></tr>
<tr class="separator:ab6fa03b7cd15117240c3ef31df92381f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa641daa1b1ef0e48dacc2fe838fa3ced"><td class="memItemLeft" align="right" valign="top"><a id="aa641daa1b1ef0e48dacc2fe838fa3ced"></a>
<a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>GetRam_aacEnc_BitLookUp</b> (int n, <a class="el" href="machine__type_8h.html#aed5a2dbe32af3a91203f0f5e8697e873">UCHAR</a> *dynamic_RAM)</td></tr>
<tr class="separator:aa641daa1b1ef0e48dacc2fe838fa3ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a485208e5f176dfdc6012df3b8845e4b9"><td class="memItemLeft" align="right" valign="top"><a id="a485208e5f176dfdc6012df3b8845e4b9"></a>
<a class="el" href="machine__type_8h.html#a4cf9af43a95c45c3d469658098dfbe1a">INT</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>GetRam_aacEnc_MergeGainLookUp</b> (int n, <a class="el" href="machine__type_8h.html#aed5a2dbe32af3a91203f0f5e8697e873">UCHAR</a> *dynamic_RAM)</td></tr>
<tr class="separator:a485208e5f176dfdc6012df3b8845e4b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ed287f7a203a8576d5322ab6c0ca828"><td class="memItemLeft" align="right" valign="top"><a id="a2ed287f7a203a8576d5322ab6c0ca828"></a>
<a class="el" href="struct_q_c___o_u_t___c_h_a_n_n_e_l.html">QC_OUT_CHANNEL</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>GetRam_aacEnc_QCchannel</b> (int n, <a class="el" href="machine__type_8h.html#aed5a2dbe32af3a91203f0f5e8697e873">UCHAR</a> *dynamic_RAM)</td></tr>
<tr class="separator:a2ed287f7a203a8576d5322ab6c0ca828"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Memory layout. </p>
<dl class="section author"><dt>Author</dt><dd>Markus Lohwasser </dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a93d4491b61e2c0a601b776665427fb67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93d4491b61e2c0a601b776665427fb67">&#9670;&nbsp;</a></span>BUF_SIZE_1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BUF_SIZE_1</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  (<a class="code" href="machine__type_8h.html#a51a540ef50f9ce83c4d71c9be5f365f5">ALIGN_SIZE</a>(maxSize(maxSize(<span class="keyword">sizeof</span>(<a class="code" href="struct_p_s_y___d_y_n_a_m_i_c.html">PSY_DYNAMIC</a>),                           \</div>
<div class="line">                              (BIT_LOOK_UP_SIZE + MERGE_GAIN_LOOK_UP_SIZE)), \</div>
<div class="line">                      ADJ_THR_SIZE)))</div>
<div class="ttc" id="amachine__type_8h_html_a51a540ef50f9ce83c4d71c9be5f365f5"><div class="ttname"><a href="machine__type_8h.html#a51a540ef50f9ce83c4d71c9be5f365f5">ALIGN_SIZE</a></div><div class="ttdeci">#define ALIGN_SIZE(a)</div><div class="ttdoc">This macro aligns a given value depending on ALIGNMENT_DEFAULT.</div><div class="ttdef"><b>Definition:</b> machine_type.h:304</div></div>
<div class="ttc" id="astruct_p_s_y___d_y_n_a_m_i_c_html"><div class="ttname"><a href="struct_p_s_y___d_y_n_a_m_i_c.html">PSY_DYNAMIC</a></div><div class="ttdef"><b>Definition:</b> psy_main.h:118</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="afbcb823adf11594a83547ffb9cf90183"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbcb823adf11594a83547ffb9cf90183">&#9670;&nbsp;</a></span>OUTPUTBUFFER_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTBUFFER_SIZE&#160;&#160;&#160;  (8192)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Output buffer size has to be at least 6144 bits per channel \ (768 bytes). FDK bitbuffer implementation expects buffer of \ size 2^n. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
